const Sequelize = require('sequelize');
module.exports = function(sequelize, DataTypes) {
  return sequelize.define('act_de_databasechangeloglock', {
    id: {
      type: DataTypes.INTEGER,
      allowNull: false,
      primaryKey: true,
      field: 'ID'
    },
    locked: {
      type: DataTypes.BOOLEAN,
      allowNull: false,
      field: 'LOCKED'
    },
    lockgranted: {
      type: DataTypes.DATE,
      allowNull: true,
      field: 'LOCKGRANTED'
    },
    lockedby: {
      type: DataTypes.STRING(255),
      allowNull: true,
      field: 'LOCKEDBY'
    }
  }, {
    sequelize,
    tableName: 'act_de_databasechangeloglock',
    timestamps: false,
    indexes: [
      {
        name: "PRIMARY",
        unique: true,
        using: "BTREE",
        fields: [
          { name: "ID" },
        ]
      },
    ]
  });
};
